/*
 * @Author: your name
 * @Date: 2021-02-10 15:13:18
 * @LastEditTime: 2021-02-14 23:29:38
 * @LastEditors: Please set LastEditors
 * @Description: 配置服务器地址和端口
 * @FilePath: \Music\src\api\request.js
 */
import axios from 'axios'
const service = axios.create({
  // baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url
  // baseURL: 'http://127.0.0.1:8000',
  // headers: {
  //   Origin: "127.0.0.1:8080"
  // },
  baseURL: 'http://121.4.151.195:8000/',
  // withCredentials: true, // send cookies when cross-domain requests
  timeout: 30000 // request timeout
})
export default service
